/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package actions.menu;

import gui.SupplierForm;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import model.DefaultModel;
import model.gui.MenuModel;

/**
 *
 * @author Gebruiker
 */
public class OpenSuppliersAction extends AbstractAction {
    
    private MenuModel model;

    public OpenSuppliersAction(MenuModel model){
        this.model = model;
    }
    @Override
    public void actionPerformed(ActionEvent e) {
        model.addTab(new SupplierForm(model), "Leveranciers", false);
    }
    
}
